#ifndef MODBUS_H
#define MODBUS_H

#include <QWidget>
#include "mybtn.h"
#include "globalval.h"
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>
#include <QButtonGroup>
namespace Ui {
class Modbus;
}

class Modbus : public QWidget
{
    Q_OBJECT

public:
    explicit Modbus(QWidget *parent = 0);
    int type;
    int result;
    ~Modbus();

private:
    Ui::Modbus *ui;
    QButtonGroup *btp;
private slots:
    void send(bool val);
    void dataUpSlot(QByteArray arry);
    void btpsend(int id, bool val);
    void tempslot(QString str);
};

#endif // MODBUS_H
